Fedora 14
Sponsored Link

proxy_http
2010/11/06
  Foward requests to another web server by mod_proxy. This means configuring Web server as a revers proxy.

(1) www03.srv.world
[10.0.0.31]
- Web server #1

(2) dlp.srv.world
[10.0.0.30]
- Web server #2


This example set servers that requests to Web server (1) forward to under /test on webserver (2)

[1] Configure httpd
[root@www03 ~]#
vi /etc/httpd/conf.d/proxy.conf


# create new

# a directory you'd like to foward

<Location /proxy>
  
# a destination directory that is forwared

   ProxyPass http://dlp.srv.world/test
   ProxyPassReverse http://dlp.srv.world/test
</Location>


[root@www03 ~]#
/etc/rc.d/init.d/httpd restart

Stopping httpd:
[  OK  ]

Starting httpd:
[  OK  ]

  Access with web browser. First, access to the place that does not have forwarding setting. Web server (1) replys normally as a following screen.
 
  Access to /proxy. Web server (2) replys as a following screen.
 
 
Tweet